package com.skyd.core.android.game;

/**
 * 旋转角度变更动作，不支持循环和持续时间设置
 * 
 * @author SkyD
 * 
 */
public class GameRotationStepMotion extends GameNumberStepMotion<Float> {


	public GameRotationStepMotion(Float targetValue, Float stepLength,
			Float tolerance) {
		super(targetValue, stepLength, tolerance);
	}

	@Override
	protected Float getCurrentValue(GameObject obj) {
		return obj.getRotation();
	}

	@Override
	protected Float plus(Float v1, Float v2) {
		return v1+v2;
	}

	@Override
	protected void setCurrentValue(GameObject obj, Float value) {
		obj.setRotation(value);
	}


}
